<%@ page pageEncoding="utf-8"%>
<%-- 引入JSTL标签库 --%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<html>
<head>
	<title>购物车管理</title>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<script type="text/javascript" src="/resources/js/commons.js"></script>
	<link rel="stylesheet" type="text/css" href="/resources/css/commons.css" />
</head>
<body>
	<h2>购物车管理</h2>
	<div id="add-clShopingCar">
		<a href="cl/shopingCar/add" target="rightFrame">新增</a>
	</div>
	<hr/>
	<table border="1">
		<tr>
			<th class="width-40">序号</th>
			<th>用户</th>
			<th>车内菜品总数</th>
			<th>车内菜品总价</th>
			<th>最近一次下单时间</th>
			<th class="width-80">操 作</th>
		</tr>

		<!-- 模版数据 -->
	<c:forEach items="${ list }" var="shoppingCar" varStatus="varStatus">
		<tr>
			<td>${ varStatus.count }</td>
			<td>${ shoppingCar.userName }</td>
			<td>${ shoppingCar.foodCountTotal }</td>
			<td>${ shoppingCar.foodPriceTotal }</td>
			<td>${ shoppingCar.lastTimeOrder }</td>
			<td>
				<a href="/clReplyDelete?id=${ shoppingCar.id }" style="color: red;">删除</a>
				|
				<a href="/clReplyInfo?id=${ shoppingCar.id }">修改</a>
			</td>
		</tr>
	</c:forEach>	
		
		
	</table>
</body>
</html>



